<?php use Zend\Filter\Null;

if ($this->pageCount): ?>
     <div class="dataPage">
     <input id="page_go_num" type="number" name="" value="" /><button id="page_go_button">GO</button>
     		<?php echo '总记录：'.$this->totalItemCount.' 条';?>
     		
             <!-- Previous page link -->
             <?php if (isset($this->previous)): ?>
                     <a href="<?php echo $this->route; ?>?page=<?php echo $this->previous.$this->params_string; ?>">
                         <<
                     </a>
             <?php else: ?>
                     <a class="disabled" href="#">
                         <<
                     </a>
             <?php endif; ?>

             <!-- Numbered page links -->
             <?php foreach ($this->pagesInRange as $page): ?>
                 <?php if ($page != $this->current): ?>
                         <a href="<?php echo $this->route;?>?page=<?php echo $page.$this->params_string; ?>">
                             <?php echo $page; ?>
                         </a>
                 <?php else: ?>
                         <a class="active" href="#"><?php echo $page; ?></a>
                 <?php endif; ?>
             <?php endforeach; ?>

             <!-- Next page link -->
             <?php if (isset($this->next)): ?>
                     <a href="<?php echo $this->route; ?>?page=<?php echo $this->next.$this->params_string; ?>">
                         >>
                     </a>
             <?php else: ?>
                     <a class="disabled" href="#">
                         >>
                     </a>
             <?php endif; ?>
     </div>
 <?php endif; ?>
<script>
$("#page_go_button").click(function(){
	var page_num = $("#page_go_num").val();
	var url = "<?php echo $this->route; ?>?page="+page_num+"<?php echo $this->params_string; ?>";
	window.location.href = url;

	
	
});

</script>